import React from 'react';
import './global.less'
// import { RightHeader } from '@/components/rightHeader'
import RightHeader from '@/components/rightHeader'
import {
  BasicLayoutProps,
  Settings as LayoutSettings,
} from '@ant-design/pro-layout';
// 其实不需要运行时配置了
import { createLogger } from 'redux-logger';
import { message } from 'antd';
export const dva = {
  config: {
    onAction: createLogger(),
    onError(e: Error) {
      message.error(e.message, 3);
    },
  },
};
export const layout = (): BasicLayoutProps => {
  return {
    rightContentRender: () => <RightHeader/>,
    footerRender: () => <div>底部</div>
  };
};
